WPF Diagrams includes a number of samples to help you understand how to use or customise specific parts of the product. You can find all of the samples in the Samples directory under the installation folder.
Use the Sample Explorer to preview and launch individual samples.
Get Started
- QuickStart provides a simple example of displaying and editing a shape diagram.
- QuickStart.FlowDiagrams provides a simple example of displaying and editing a flow diagram.
- QuickStart.StarDiagrans provides a simple example of displaying and editing a star diagram.
Explore the Options
- FeatureExplorer allows you to try out many of the options for displaying and interacting with diagrams.
- LayoutAlgorithmExplorer allows you to try out and compare different automatic diagram layouts.
Extend and Enhance
- CustomNodeType.FlowDiagrams demonstrates how to define, display and serialize node types that represent your own application-specific concepts.
- CustomStyle.FlowDiagrams provides an example of restyling standard elements to fit your own visual theme.
- CustomDataSerialization gives examples of working with non-text node data.
- Cosmic.StarDiagrams shows how to create your own node types and visual styles for star diagrams.
- ActivityDiagrams shows how to implement your own diagram type with its own node types, constraints and validation logic.
Go Deep
- CustomDiagramType shows how to implement your own diagram type using the low-level Foundation classes and interfaces for maximum control and flexibility.
- ConnectionValidation.FlowDiagrams shows how to constrain how the user is allowed to connect nodes.
- ConnectionPointValidation.FlowDiagrams shows how to constrain how the user is allowed to use individual connection points on a node.
- ConnectionPointRelocation.FlowDiagrams demonstrates how to change the positions of connection points on a node.
For a walkthrough of building a diagramming application, please see the QuickStart walkthrough.